<template>
  <div>
    <el-table
        :data="tableData"
        height="500"
        border
        style="width: 100%">
      <el-table-column
          prop="ranking"
          label="排行"
          width="50">
      </el-table-column>
      <el-table-column
          prop="username"
          label="用户"
          width="100">
      </el-table-column>
      <el-table-column
          prop="score"
          label="得分">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "scoreLeaderBoard",
  data() {
    return {
      tableData: [{
        ranking: '1',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '2',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '3',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '4',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '5',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '6',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '7',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '8',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '9',
        username: '王小虎',
        score: '100'
      }, {
        ranking: '7',
        username: '王小虎',
        score: '100'
      }
      ]
    }
  }
}
</script>

<style scoped>

</style>